package com.zhijian.warehouse.manage.enums;

/**
 * 字典-删除
 * @Author chengqing
 * @Version 1.0.1
 */
public enum DelFlagEnum {
    USING(0, "未删除"),
    DELETED(1, "已删除"),
    ;
    public int value;
    public String msg;

    DelFlagEnum(int value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public static DelFlagEnum getByValue(int value) {
        DelFlagEnum[] flags = DelFlagEnum.values();
        for (DelFlagEnum flag : flags) {
            if (flag.value == value)
                return flag;
        }
        return null;
    }
}
